Follow-the-leader algorithm

#incomplete